import $http from '@/http/http'

const baseURL = '/course'

export const newCourse = data => {
    return $http.post(baseURL + '/new', data)
}

export const getMyCourses = data => {
    return $http.post(baseURL + '/getMy', data)
}

export const getCurrentCourses = () => {
    return $http.post(baseURL + '/getCurrent')
}

export const deleteCourse = data => {
    return $http.post(baseURL + '/delete', data)
}